<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>错误页面</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-5">
    <div class="alert alert-danger">
        <h4 class="alert-heading">发生错误！</h4>
        <p th:text="${error}">错误信息</p>
        <hr>
        <p th:text="${message}">详细信息</p>
        <p th:text="${trace}">堆栈跟踪</p>
    </div>
    <a href="/" class="btn btn-primary">返回首页</a>
</div>
</body>
</html> 